match_all: Only allocate an array when needed
authorMatthias Clasen <mclasen@redhat.com>
Wed, 9 Sep 2015 15:08:43 +0000 (11:08 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 9 Sep 2015 15:17:13 +0000 (11:17 -0400)
commita9481cb410c6e2c1b516b282909d04f9ec1d61c4
tree63840fe33f1a2c03c431a7012a3b86afa6e47ac7
parent2d29ae4159a084262e3aefd79d61987476e54a91
match_all: Only allocate an array when needed

My statistics show that more than half of all calls end up
with 0 matches, so we can avoid some overhead by not allocating
an array at all in this case.
gtk/gtkcssselector.c